/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.risk.service.api;


import com.koron.common.bean.StaffBean;
import com.koron.risk.bean.KeyWork;
import com.koron.risk.bean.KeyWorkDetail;
import org.swan.bean.MessageBean;

import java.util.List;

public interface KeyWorkService {
    /**
     * 列表查询
     * @param workName 工作名称
     * @param departmentCode 部门code
     * @param page
     * @param pageSize
     * @return
     */
    MessageBean queryForList(StaffBean user, String corpCode, String workName, String departmentCode, Integer page, Integer pageSize);

    /**
     * 根据ID查询重点工作
     * @param id 重点工作ID
     * @return
     */
    MessageBean queryById(String id);

    /**
     * 新增重点工作
     * @param keyWork
     * @param keyWorkDetails
     * @return
     */
    MessageBean insertKeyWork(StaffBean user, KeyWork keyWork, List<KeyWorkDetail> keyWorkDetails);

    /**
     * 修改重点工作
     * @param keyWork
     * @param keyWorkDetails
     * @return
     */
    MessageBean updateKeyWork(StaffBean user, KeyWork keyWork, List<KeyWorkDetail> keyWorkDetails);

    /**
     * 确认重点工作
     * @param user
     * @param id 重点工作ID
     * @return
     */
    MessageBean affirmKeyWork(StaffBean user, String id);
}
